#ifndef __INVADER_LABEL_H__
#define __INVADER_LABEL_H__

#include <list>

#include <QFrame>

class QString;
class QHBoxLayout;
class QLabel;

/**
 * A string label which uses the InvaderFont
 */
class InvaderLabel : public QFrame
{
  Q_OBJECT

public:
  /**
   * @param label string to display
   * @param parent parent of this InvaderLabel
   */
  InvaderLabel (const QString &label, QWidget *parent = 0);

  /**
   * Sets the text of this InvaderLabel
   *
   * @param label new value of the text
   */
  void setText (const QString &label);

private:
  std::list<QLabel *> _glyphs;
  QHBoxLayout *_layout;
};

#endif
